<?php

namespace Home\Model\Ajax;

class UserFindpwd extends AbstractAjax
{
    //找回密码
    public function handle()
    {
        $user = D('User');
        if ($user->is_login()) {
            $ajax['status']  = 0;
            $ajax['content'] = "你目前是登录状态，不能找回密码！";
            return $ajax;
        } else {
            $oauth_list = ytata_get_cache('oauth');
            $this->assign('oauth_list', $oauth_list);
            $html            = $this->fetch('ajax_user_findpwd');
            $ajax['status']  = 1;
            $ajax['content'] = $html;
            return $ajax;
        }
    }
}